{extend name="common/base" /}
{block name="title"}管理员列表{/block}
{block name="main"}
<body>
<div id="wrapper">
     <!-- Navigation -->
		<div id="page-wrapper">
        <div class="col-md-12 graphs">
	   <div class="xs">
  	 <h3>管理员列表</h3> 
  	<div class="bs-example4" data-example-id="contextual-table">
	<h5><a href="{:url('Administrator/managersAdd')}"><span class="label label-success">添加管理员</span></a></h5>
    <table class="table">
      <thead>
        <tr>
          <th>#</th>
          <th>管理者</th>
          <th>权限</th>
          <th>添加时间</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
		{volist name="user" id="u" key="k"}
        <tr>
          <th scope="row">{$k}</th>
          <td>{$u.name}</td>
          <td>{$u['position']==0?'超级管理员':'管理员'}</td>
          <td>{$u.addtime|date='Y-m-d',###}</td>
		  <td><a href="{:url('Administrator/managersAdd',array('id'=>$u['id']))}"><span class="label label-primary">编辑</span></a>
              <a href="{:url('Administrator/managersDelete',array('id'=>$u['id']))}" onclick="javascript:return del();"><span class="label label-danger">删除</span></a>
          </td>
        </tr>
		{/volist}
        
      </tbody>
    </table>
	  <div style="text-align:center;">{$user->render()}</div>
   </div>
  </div>
 
  {/block}
  
    
